package com.company.project.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.company.project.mapper.ProjectVoteMapper;
import com.company.project.entity.ProjectVoteEntity;
import com.company.project.service.ProjectVoteService;
import com.company.project.vo.resp.PorjectRankDTO;


@Service("projectVoteService")
public class ProjectVoteServiceImpl extends ServiceImpl<ProjectVoteMapper, ProjectVoteEntity> implements ProjectVoteService {

	@Autowired
	private ProjectVoteMapper projectVoteMapper;
	
	@SuppressWarnings("rawtypes")
	@Override
	public IPage<PorjectRankDTO> getProjectVoteRank(Page page) {
		return projectVoteMapper.getProjectVoteRank(page);
	}


}